package com.example.demo.service;

import com.example.demo.pojo.vo.AddUser;
import com.example.demo.pojo.vo.PageResult;
import com.example.demo.pojo.vo.QueryPageBean;
import com.example.demo.pojo.vo.UpdateUser;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

public interface UserService {

    PageResult findByPage(QueryPageBean queryPageBean);

    @Transactional(
            isolation = Isolation.DEFAULT,
            timeout = -1,
            readOnly = true,
            propagation = Propagation.REQUIRED
    )
    void addUser(AddUser au);
    @Transactional
    void updateUser(UpdateUser uu);
    @Transactional
    void deleteUser(String uidStr);
}
